﻿@using Domain.Dto.SiteMap
@model SiteMapDto
<form asp-action="Add" method="post">
    <div asp-validation-summary="All" class="text-danger"></div>
    <div class="form-group row">
        <label asp-for="Name" class="control-label">ID</label>
        <div class="col-sm-10">
            <input class="form-control" asp-for="Name" placeholder="ID">
        </div>
        <span asp-validation-for="Name" class="text-danger"></span>
    </div>
    <div class="form-group row">
        <label asp-for="Url" class="control-label">Url</label>
        <div class="col-sm-10">
            <input asp-for="Url" class="form-control" placeholder="Url">
        </div>
        <span asp-validation-for="Url" class="text-danger"></span>
    </div>
    <button type="submit" class="btn btn-primary">Submit</button>
</form>
@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}